module encode_standard(original_in,out_standard,rd,key1,rstn);

input rd;
input [8:0] original_in;
input key1,rstn;
output [9:0] out_standard;

wire rd;
wire [8:0] original_in;
wire key1,rstn;
reg [9:0] out_standard;


//指定中间变量
reg rd_standard;
reg [7:0] original_in_standard;
reg k;

always@(posedge key1 or negedge rstn)begin
if(!rstn)
	original_in_standard <= 0;
else
	original_in_standard <= original_in[7:0];
end

always@(posedge key1 or negedge rstn)begin
if(!rstn)
	rd_standard <= 0;
else
	rd_standard <= rd;
end


always@(posedge key1 or negedge rstn)begin
if(!rstn)
	k <= 0;
else
	k <= original_in[8];
end


always@(original_in_standard or rd_standard)begin
case({k,original_in_standard[7:0]})
// 9'b0000_00000: begin out_standard <= !rd_standard ? 8'b100111_0100 : 011000_1011 ; end //	D0.0			00

8'b00000000: begin out_standard <= !rd_standard ? 10'b1001110100 : 0110001011 ; end //	D0.0			00
8'b00000001: begin out_standard <= !rd_standard ? 10'b0111010100 : 1000101011 ; end //	D1.0			01
8'b00000010: begin out_standard <= !rd_standard ? 10'b1011010100 : 0100101011 ; end //	D2.0			02
8'b00000011: begin out_standard <= !rd_standard ? 10'b1100011011 : 1100010100 ; end //	D3.0			03
8'b00000100: begin out_standard <= !rd_standard ? 10'b1101010100 : 0010101011 ; end //	D4.0			04
8'b00000101: begin out_standard <= !rd_standard ? 10'b1010011011 : 1010010100 ; end //	D5.0			05
8'b00000110: begin out_standard <= !rd_standard ? 10'b0110011011 : 0110010100 ; end //	D6.0			06
8'b00000111: begin out_standard <= !rd_standard ? 10'b1110001011 : 0001110100 ; end //	D7.0			07
8'b00001000: begin out_standard <= !rd_standard ? 10'b1110010100 : 0001101011 ; end //	D8.0			08
8'b00001001: begin out_standard <= !rd_standard ? 10'b1001011011 : 1001010100 ; end //	D9.0			09
8'b00001010: begin out_standard <= !rd_standard ? 10'b0101011011 : 0101010100 ; end //	D10.0		0A
8'b00001011: begin out_standard <= !rd_standard ? 10'b1101001011 : 1101000100 ; end //	D11.0		0B
8'b00001100: begin out_standard <= !rd_standard ? 10'b0011011011 : 0011010100 ; end //	D12.0		0C
8'b00001101: begin out_standard <= !rd_standard ? 10'b1011001011 : 1011000100 ; end //	D13.0		0D
8'b00001110: begin out_standard <= !rd_standard ? 10'b0111001011 : 0111000100 ; end //	D14.0		0E
8'b00001111: begin out_standard <= !rd_standard ? 10'b0101110100 : 1010001011 ; end //	D15.0		0F	
8'b00010000: begin out_standard <= !rd_standard ? 10'b0110110100 : 1001001011 ; end //	D16.0		10
8'b00010001: begin out_standard <= !rd_standard ? 10'b1000111011 : 1000110100 ; end //	D17.0		11
8'b00010010: begin out_standard <= !rd_standard ? 10'b0100111011 : 0100110100 ; end //	D18.0		12
8'b00010011: begin out_standard <= !rd_standard ? 10'b1100101011 : 1100100100 ; end //	D19.0		13
8'b00010100: begin out_standard <= !rd_standard ? 10'b0010111011 : 0010110100 ; end //	D20.0		14
8'b00010101: begin out_standard <= !rd_standard ? 10'b1010101011 : 1010100100 ; end //	D21.0		15
8'b00010110: begin out_standard <= !rd_standard ? 10'b0110101011 : 0110100100 ; end //	D22.0		16
8'b00010111: begin out_standard <= !rd_standard ? 10'b1110100100 : 0001011011 ; end //	D23.0		17
8'b00011000: begin out_standard <= !rd_standard ? 10'b1100110100 : 0011001011 ; end //	D24.0		18
8'b00011001: begin out_standard <= !rd_standard ? 10'b1001101011 : 1001100100 ; end //	D25.0		19
8'b00011010: begin out_standard <= !rd_standard ? 10'b0101101011 : 0101100100 ; end //	D26.0		1A
8'b00011011: begin out_standard <= !rd_standard ? 10'b1101100100 : 0010011011 ; end //	D27.0		1B
8'b00011011: begin out_standard <= !rd_standard ? 10'b1101100100 : 0010011011 ; end //	D27.0		1B
8'b00011100: begin out_standard <= !rd_standard ? 10'b0011101011 : 0011100100 ; end //	D28.0		1C
8'b00011101: begin out_standard <= !rd_standard ? 10'b1011100100 : 0100011011 ; end //	D29.0		1D
8'b00011110: begin out_standard <= !rd_standard ? 10'b0111100100 : 1000011011 ; end //	D30.0		1E
8'b00011111: begin out_standard <= !rd_standard ? 10'b1010110100 : 0101001011 ; end //	D31.0		1F	
8'b00100000: begin out_standard <= !rd_standard ? 10'b1001111011 : 0110001001 ; end //	D0.1			20
8'b00100001: begin out_standard <= !rd_standard ? 10'b0111011011 : 1000101001 ; end //	D1.1			21
8'b00100010: begin out_standard <= !rd_standard ? 10'b1011011011 : 0100101001 ; end //	D2.1			22
8'b00100011: begin out_standard <= !rd_standard ? 10'b1100011011 : 1100011001 ; end //	D3.1			23
8'b00100100: begin out_standard <= !rd_standard ? 10'b1101011011 : 0010101001 ; end //	D4.1			24
8'b00100101: begin out_standard <= !rd_standard ? 10'b1010011011 : 1010011001 ; end //	D5.1			25
8'b00100110: begin out_standard <= !rd_standard ? 10'b0110011011 : 0110011001 ; end //	D6.1			26
8'b00100111: begin out_standard <= !rd_standard ? 10'b1110001011 : 0001111001 ; end //	D7.1			27
8'b00101000: begin out_standard <= !rd_standard ? 10'b1110011011 : 0001101001 ; end //	D8.1			28
8'b00101001: begin out_standard <= !rd_standard ? 10'b1001011011 : 1001011001 ; end //	D9.1			29
8'b00101010: begin out_standard <= !rd_standard ? 10'b0101011001 : 0101011001 ; end //	D10.1		2A
8'b00101011: begin out_standard <= !rd_standard ? 10'b1101001001 : 1101001001 ; end //	D11.1		2B
8'b00101100: begin out_standard <= !rd_standard ? 10'b0011011001 : 0011011001 ; end //	D12.1		2C
8'b00101101: begin out_standard <= !rd_standard ? 10'b1011011001 : 1011001001 ; end //	D13.1		2D
8'b00101110: begin out_standard <= !rd_standard ? 10'b0111001001 : 0111001001 ; end //	D14.1		2E
8'b00101111: begin out_standard <= !rd_standard ? 10'b0101111001 : 1010001001 ; end //	D15.1		2F	
8'b00110000: begin out_standard <= !rd_standard ? 10'b0110111001 : 0110111001 ; end //	D16.1		30
8'b00110001: begin out_standard <= !rd_standard ? 10'b1000111001 : 1000111001 ; end //	D17.1		31
8'b00110010: begin out_standard <= !rd_standard ? 10'b0100111001 : 0100111001 ; end //	D18.1		32
8'b00110011: begin out_standard <= !rd_standard ? 10'b1100101001 : 1100101001 ; end //	D19.1		33
8'b00110100: begin out_standard <= !rd_standard ? 10'b0010111001 : 0010111001 ; end //	D20.1		34
8'b00110101: begin out_standard <= !rd_standard ? 10'b1010101001 : 1010101001 ; end //	D21.1		35
8'b00110110: begin out_standard <= !rd_standard ? 10'b0110101001 : 0110101001 ; end //	D22.1		36
8'b00110111: begin out_standard <= !rd_standard ? 10'b1110101001 : 0001011001 ; end //	D23.1		37
8'b00111000: begin out_standard <= !rd_standard ? 10'b1100111001 : 0011001001 ; end //	D24.1		38
8'b00111001: begin out_standard <= !rd_standard ? 10'b1001101001 : 1001101001 ; end //	D25.1		39
8'b00111010: begin out_standard <= !rd_standard ? 10'b0101101001 : 0101101001 ; end //	D26.1		3A
8'b00111011: begin out_standard <= !rd_standard ? 10'b1101101001 : 0010011001 ; end //	D27.1		3B
8'b00111100: begin out_standard <= !rd_standard ? 10'b0011101001 : 0011101001 ; end //	D28.1		3C
8'b00111101: begin out_standard <= !rd_standard ? 10'b1011101001 : 0100011001 ; end //	D29.1		3D
8'b00111110: begin out_standard <= !rd_standard ? 10'b0111101001 : 1000011001 ; end //	D30.1		3E
8'b00111111: begin out_standard <= !rd_standard ? 10'b1010111001 : 0101001001 ; end //	D31.1		3F	
8'b01000000: begin out_standard <= !rd_standard ? 10'b1001110101 : 0110000101 ; end //	D0.2			40
8'b01000001: begin out_standard <= !rd_standard ? 10'b0111010101 : 1000100101 ; end //	D1.2			41
8'b01000010: begin out_standard <= !rd_standard ? 10'b1011010101 : 0100100101 ; end //	D2.2			42
8'b01000011: begin out_standard <= !rd_standard ? 10'b1100010101 : 1100010101 ; end //	D3.2			43
8'b01000100: begin out_standard <= !rd_standard ? 10'b1101010101 : 0010100101 ; end //	D4.2			44
8'b01000101: begin out_standard <= !rd_standard ? 10'b1010010101 : 1010010101 ; end //	D5.2			45
8'b01000110: begin out_standard <= !rd_standard ? 10'b0110010101 : 0110010101 ; end //	D6.2			46
8'b01000111: begin out_standard <= !rd_standard ? 10'b1110000101 : 0001110101 ; end //	D7.2			47
8'b01001000: begin out_standard <= !rd_standard ? 10'b1110010101 : 0001100101 ; end //	D8.2			48
8'b01001001: begin out_standard <= !rd_standard ? 10'b1001010101 : 1001010101 ; end //	D9.2			49
8'b01001010: begin out_standard <= !rd_standard ? 10'b0101010101 : 0101010101 ; end //	D10.2		4A
8'b01001011: begin out_standard <= !rd_standard ? 10'b1101000101 : 1101000101 ; end //	D11.2		4B
8'b01001100: begin out_standard <= !rd_standard ? 10'b0011010101 : 0011010101 ; end //	D12.2		4C
8'b01001101: begin out_standard <= !rd_standard ? 10'b1011000101 : 1011000101 ; end //	D13.2		4D
8'b01001110: begin out_standard <= !rd_standard ? 10'b0111000101 : 0111000101 ; end //	D14.2		4E
8'b01001111: begin out_standard <= !rd_standard ? 10'b0101110101 : 1010000101 ; end //	D15.2		4F	
8'b01010000: begin out_standard <= !rd_standard ? 10'b0110110101 : 1001000101 ; end //	D16.2		50
8'b01010001: begin out_standard <= !rd_standard ? 10'b1000110101 : 1000110101 ; end //	D17.2		51
8'b01010010: begin out_standard <= !rd_standard ? 10'b0100110101 : 0100110101 ; end //	D18.2		52
8'b01010011: begin out_standard <= !rd_standard ? 10'b1100100101 : 1100100101 ; end //	D19.2		53
8'b01010100: begin out_standard <= !rd_standard ? 10'b0010110101 : 0010110101 ; end //	D20.2		54
8'b01010101: begin out_standard <= !rd_standard ? 10'b1010100101 : 1010100101 ; end //	D21.2		55
8'b01010110: begin out_standard <= !rd_standard ? 10'b0110100101 : 0110100101 ; end //	D22.2		56
8'b01010111: begin out_standard <= !rd_standard ? 10'b1110100101 : 0001010101 ; end //	D23.2		57
8'b01011000: begin out_standard <= !rd_standard ? 10'b1100110101 : 0011000101 ; end //	D24.2		58
8'b01011001: begin out_standard <= !rd_standard ? 10'b1001100101 : 1001100101 ; end //	D25.2		59
8'b01011010: begin out_standard <= !rd_standard ? 10'b0101100101 : 0101100101 ; end //	D26.2		5A
8'b01011011: begin out_standard <= !rd_standard ? 10'b1101100101 : 0010010101 ; end //	D27.2		5B
8'b01011100: begin out_standard <= !rd_standard ? 10'b0011100101 : 0011100101 ; end //	D28.2		5C
8'b01011101: begin out_standard <= !rd_standard ? 10'b1011100101 : 0100010101 ; end //	D29.2		5D
8'b01011110: begin out_standard <= !rd_standard ? 10'b0111100101 : 1000010101 ; end //	D30.2		5E
8'b01011111: begin out_standard <= !rd_standard ? 10'b1010110101 : 0101000101 ; end //	D31.2		5F	
8'b01100000: begin out_standard <= !rd_standard ? 10'b1001110011 : 0110001100 ; end //	D0.3			60
8'b01100001: begin out_standard <= !rd_standard ? 10'b0111010011 : 1000101100 ; end //	D1.3			61
8'b01100010: begin out_standard <= !rd_standard ? 10'b1011010011 : 0100101100 ; end //	D2.3			62
8'b01100011: begin out_standard <= !rd_standard ? 10'b1100011100 : 1100010011 ; end //	D3.3			63
8'b01100100: begin out_standard <= !rd_standard ? 10'b1101010011 : 0010101100 ; end //	D4.3			64
8'b01100101: begin out_standard <= !rd_standard ? 10'b1010011100 : 1010010011 ; end //	D5.3			65
8'b01100110: begin out_standard <= !rd_standard ? 10'b0110011100 : 0110010011 ; end //	D6.3			66
8'b01100111: begin out_standard <= !rd_standard ? 10'b1110001100 : 0001110011 ; end //	D7.3			67
8'b01101000: begin out_standard <= !rd_standard ? 10'b1110010011 : 0001101100 ; end //	D8.3			68
8'b01101001: begin out_standard <= !rd_standard ? 10'b1001011100 : 1001010011 ; end //	D9.3			69
8'b01101010: begin out_standard <= !rd_standard ? 10'b0101011100 : 0101010011 ; end //	D10.3		6A
8'b01101011: begin out_standard <= !rd_standard ? 10'b1101001100 : 1101000011 ; end //	D11.3		6B
8'b01101100: begin out_standard <= !rd_standard ? 10'b0011011100 : 0011010011 ; end //	D12.3		6C
8'b01101101: begin out_standard <= !rd_standard ? 10'b1011001100 : 1011000011 ; end //	D13.3		6D
8'b01101110: begin out_standard <= !rd_standard ? 10'b0111001100 : 0111000011 ; end //	D14.3		6E
8'b01101111: begin out_standard <= !rd_standard ? 10'b0101110011 : 1010001100 ; end //	D15.3		6F	
8'b01110000: begin out_standard <= !rd_standard ? 10'b0110110011 : 1001001100 ; end //	D16.3		70
8'b01110001: begin out_standard <= !rd_standard ? 10'b1000111100 : 1000110011 ; end //	D17.3		71
8'b01110010: begin out_standard <= !rd_standard ? 10'b0100111100 : 0100110011 ; end //	D18.3		72
8'b01110011: begin out_standard <= !rd_standard ? 10'b1100101100 : 1100100011 ; end //	D19.3		73
8'b01110100: begin out_standard <= !rd_standard ? 10'b0010111100 : 0010110011 ; end //	D20.3		74
8'b01110101: begin out_standard <= !rd_standard ? 10'b1010101100 : 1010100011 ; end //	D21.3		75
8'b01110110: begin out_standard <= !rd_standard ? 10'b0110101100 : 0110100011 ; end //	D22.3		76
8'b01110111: begin out_standard <= !rd_standard ? 10'b1110100011 : 0001011100 ; end //	D23.3		77
8'b01111000: begin out_standard <= !rd_standard ? 10'b1100110011 : 0011001100 ; end //	D24.3		78
8'b01111001: begin out_standard <= !rd_standard ? 10'b1001101100 : 1001100011 ; end //	D25.3		79
8'b01111010: begin out_standard <= !rd_standard ? 10'b0101101100 : 0101100011 ; end //	D26.3		7A
8'b01111011: begin out_standard <= !rd_standard ? 10'b1101100011 : 0010011100 ; end //	D27.3		7B
8'b01111100: begin out_standard <= !rd_standard ? 10'b0011101100 : 0011100011 ; end //	D28.3		7C
8'b01111101: begin out_standard <= !rd_standard ? 10'b1011100011 : 0100011100 ; end //	D29.3		7D
8'b01111110: begin out_standard <= !rd_standard ? 10'b0111100011 : 1000011100 ; end //	D30.3		7E
8'b01111111: begin out_standard <= !rd_standard ? 10'b1010110011 : 0101001100 ; end //	D31.3		7F	
8'b10000000: begin out_standard <= !rd_standard ? 10'b1001110010 : 0110001101 ; end //	D0.4			80
8'b10000001: begin out_standard <= !rd_standard ? 10'b0111010010 : 1000101101 ; end //	D1.4			81
8'b10000010: begin out_standard <= !rd_standard ? 10'b1011010010 : 0100101101 ; end //	D2.4			82
8'b10000011: begin out_standard <= !rd_standard ? 10'b1100011101 : 1100010010 ; end //	D3.4			83
8'b10000100: begin out_standard <= !rd_standard ? 10'b1101010010 : 0010101101 ; end //	D4.4			84
8'b10000101: begin out_standard <= !rd_standard ? 10'b1010011101 : 1010010010 ; end //	D5.4			85
8'b10000110: begin out_standard <= !rd_standard ? 10'b0110011101 : 0110010010 ; end //	D6.4			86
8'b10000111: begin out_standard <= !rd_standard ? 10'b1110001101 : 0001110010 ; end //	D7.4			87
8'b10001000: begin out_standard <= !rd_standard ? 10'b1110010010 : 0001101101 ; end //	D8.4			88
8'b10001001: begin out_standard <= !rd_standard ? 10'b1001011101 : 1001010010 ; end //	D9.4			89
8'b10001010: begin out_standard <= !rd_standard ? 10'b0101011101 : 0101010010 ; end //	D10.4		8A
8'b10001011: begin out_standard <= !rd_standard ? 10'b1101001101 : 1101000010 ; end //	D11.4		8B
8'b10001100: begin out_standard <= !rd_standard ? 10'b0011011101 : 0011010010 ; end //	D12.4		8C
8'b10001101: begin out_standard <= !rd_standard ? 10'b1011001101 : 1011000010 ; end //	D13.4		8D
8'b10001110: begin out_standard <= !rd_standard ? 10'b0111001101 : 0111000010 ; end //	D14.4		8E
8'b10001111: begin out_standard <= !rd_standard ? 10'b0101110010 : 1010001101 ; end //	D15.4		8F	
8'b10010000: begin out_standard <= !rd_standard ? 10'b0110110010 : 1001001101 ; end //	D16.4		90
8'b10010001: begin out_standard <= !rd_standard ? 10'b1000111101 : 1000110010 ; end //	D17.4		91
8'b10010010: begin out_standard <= !rd_standard ? 10'b0100111101 : 0100110010 ; end //	D18.4		92
8'b10010011: begin out_standard <= !rd_standard ? 10'b1100101101 : 1100100010 ; end //	D19.4		93
8'b10010100: begin out_standard <= !rd_standard ? 10'b0010111101 : 0010110010 ; end //	D20.4		94
8'b10010101: begin out_standard <= !rd_standard ? 10'b1010101101 : 1010100010 ; end //	D21.4		95
8'b10010110: begin out_standard <= !rd_standard ? 10'b0110101101 : 0110100010 ; end //	D22.4		96
8'b10010111: begin out_standard <= !rd_standard ? 10'b1110100010 : 0001011101 ; end //	D23.4		97
8'b10011000: begin out_standard <= !rd_standard ? 10'b1100110010 : 0011001101 ; end //	D24.4		98
8'b10011001: begin out_standard <= !rd_standard ? 10'b1001101101 : 1001100010 ; end //	D25.4		99
8'b10011010: begin out_standard <= !rd_standard ? 10'b0101101101 : 0101100010 ; end //	D26.4		9A
8'b10011011: begin out_standard <= !rd_standard ? 10'b1101100010 : 0010011101 ; end //	D27.4		9B
8'b10011100: begin out_standard <= !rd_standard ? 10'b0011101101 : 0011100010 ; end //	D28.4		9C
8'b10011101: begin out_standard <= !rd_standard ? 10'b1011100010 : 0100011101 ; end //	D29.4		9D
8'b10011110: begin out_standard <= !rd_standard ? 10'b0111100010 : 1000011101 ; end //	D30.4		9E
8'b10011111: begin out_standard <= !rd_standard ? 10'b1010110010 : 0101001101 ; end //	D31.4		9F	
8'b10100000: begin out_standard <= !rd_standard ? 10'b1001111010 : 0110001010 ; end //	D0.5			A0
8'b10100001: begin out_standard <= !rd_standard ? 10'b0111011010 : 1000101010 ; end //	D1.5			A1
8'b10100010: begin out_standard <= !rd_standard ? 10'b1011011010 : 0100101010 ; end //	D2.5			A2
8'b10100011: begin out_standard <= !rd_standard ? 10'b1100011010 : 1100011010 ; end //	D3.5			A3
8'b10100100: begin out_standard <= !rd_standard ? 10'b1101011010 : 0010101010 ; end //	D4.5			A4
8'b10100101: begin out_standard <= !rd_standard ? 10'b1010011010 : 1010011010 ; end //	D5.5			A5
8'b10100110: begin out_standard <= !rd_standard ? 10'b0110011010 : 0110011010 ; end //	D6.5			A6
8'b10100111: begin out_standard <= !rd_standard ? 10'b1110001010 : 0001111010 ; end //	D7.5			A7
8'b10101000: begin out_standard <= !rd_standard ? 10'b1110011010 : 0001101010 ; end //	D8.5			A8
8'b10101001: begin out_standard <= !rd_standard ? 10'b1001011010 : 1001011010 ; end //	D9.5			A9
8'b10101010: begin out_standard <= !rd_standard ? 10'b0101011010 : 0101011010 ; end //	D10.5		AA
8'b10101011: begin out_standard <= !rd_standard ? 10'b1101001010 : 1101001010 ; end //	D11.5		AB
8'b10101100: begin out_standard <= !rd_standard ? 10'b0011011010 : 0011011010 ; end //	D12.5		AC
8'b10101101: begin out_standard <= !rd_standard ? 10'b1011001010 : 1011001010 ; end //	D13.5		AD
8'b10101110: begin out_standard <= !rd_standard ? 10'b0111001010 : 0111001010 ; end //	D14.5		AE
8'b10101111: begin out_standard <= !rd_standard ? 10'b0101111010 : 1010001010 ; end //	D15.5		AF
8'b10110000: begin out_standard <= !rd_standard ? 10'b0110111010 : 1001001010 ; end //	D16.5		B0
8'b10110001: begin out_standard <= !rd_standard ? 10'b1000111010 : 1000111010 ; end //	D17.5		B1
8'b10110010: begin out_standard <= !rd_standard ? 10'b0100111010 : 0100111010 ; end //	D18.5		B2
8'b10110011: begin out_standard <= !rd_standard ? 10'b1100101010 : 1100101010 ; end //	D19.5		B3
8'b10110100: begin out_standard <= !rd_standard ? 10'b0010111010 : 0010111010 ; end //	D20.5		B4
8'b10110101: begin out_standard <= !rd_standard ? 10'b1010101010 : 1010101010 ; end //	D21.5		B5
8'b10110110: begin out_standard <= !rd_standard ? 10'b0110101010 : 0110101010 ; end //	D22.5		B6
8'b10110111: begin out_standard <= !rd_standard ? 10'b1110101010 : 0001011010 ; end //	D23.5		B7
8'b10111000: begin out_standard <= !rd_standard ? 10'b1100111010 : 0011001010 ; end //	D24.5		B8
8'b10111001: begin out_standard <= !rd_standard ? 10'b1001101010 : 1001101010 ; end //	D25.5		B9
8'b10111010: begin out_standard <= !rd_standard ? 10'b0101101010 : 0101101010 ; end //	D26.5		BA
8'b10111011: begin out_standard <= !rd_standard ? 10'b1101101010 : 0010011010 ; end //	D27.5		BB
8'b10111100: begin out_standard <= !rd_standard ? 10'b0011101010 : 0011101010 ; end //	D28.5		BC
8'b10111101: begin out_standard <= !rd_standard ? 10'b1011101010 : 0100011010 ; end //	D29.5		BD
8'b10111110: begin out_standard <= !rd_standard ? 10'b0111101010 : 1000011010 ; end //	D30.5		BE
8'b10111111: begin out_standard <= !rd_standard ? 10'b1010111010 : 0101001010 ; end //	D31.5		BF
8'b11000000: begin out_standard <= !rd_standard ? 10'b1001110110 : 0110000110 ; end //	D0.6			C0
8'b11000001: begin out_standard <= !rd_standard ? 10'b0111010110 : 1000100110 ; end //	D1.6			C1
8'b11000010: begin out_standard <= !rd_standard ? 10'b1011010110 : 0100100110 ; end //	D2.6			C2
8'b11000011: begin out_standard <= !rd_standard ? 10'b1100010110 : 1100010110 ; end //	D3.6			C3
8'b11000100: begin out_standard <= !rd_standard ? 10'b1101010110 : 0010100110 ; end //	D4.6			C4
8'b11000101: begin out_standard <= !rd_standard ? 10'b1010010110 : 1010010110 ; end //	D5.6			C5
8'b11000110: begin out_standard <= !rd_standard ? 10'b0110010110 : 0110010110 ; end //	D6.6			C6
8'b11000111: begin out_standard <= !rd_standard ? 10'b1110000110 : 0001110110 ; end //	D7.6			C7
8'b11001000: begin out_standard <= !rd_standard ? 10'b1110010110 : 0001100110 ; end //	D8.6			C8
8'b11001001: begin out_standard <= !rd_standard ? 10'b1001010110 : 1001010110 ; end //	D9.6			C9
8'b11001010: begin out_standard <= !rd_standard ? 10'b0101010110 : 0101010110 ; end //	D10.6		CA
8'b11001011: begin out_standard <= !rd_standard ? 10'b1101000110 : 1101000110 ; end //	D11.6		CB
8'b11001100: begin out_standard <= !rd_standard ? 10'b0011010110 : 0011010110 ; end //	D12.6		CC
8'b11001101: begin out_standard <= !rd_standard ? 10'b1011000110 : 1011000110 ; end //	D13.6		CD
8'b11001110: begin out_standard <= !rd_standard ? 10'b0111000110 : 0111000110 ; end //	D14.6		CE
8'b11001111: begin out_standard <= !rd_standard ? 10'b0101110110 : 1010000110 ; end //	D15.6		CF
8'b11010000: begin out_standard <= !rd_standard ? 10'b0110110110 : 1001000110 ; end //	D16.6		D0
8'b11010001: begin out_standard <= !rd_standard ? 10'b1000110110 : 1000110110 ; end //	D17.6		D1
8'b11010010: begin out_standard <= !rd_standard ? 10'b0100110110 : 0100110110 ; end //	D18.6		D2
8'b11010011: begin out_standard <= !rd_standard ? 10'b1100100110 : 1100100110 ; end //	D19.6		D3
8'b11010100: begin out_standard <= !rd_standard ? 10'b0010110110 : 0010110110 ; end //	D20.6		D4
8'b11010101: begin out_standard <= !rd_standard ? 10'b1010100110 : 1010100110 ; end //	D21.6		D5
8'b11010110: begin out_standard <= !rd_standard ? 10'b0110100110 : 0110100110 ; end //	D22.6		D6
8'b11010111: begin out_standard <= !rd_standard ? 10'b1110100110 : 0001010110 ; end //	D23.6		D7
8'b11011000: begin out_standard <= !rd_standard ? 10'b1100110110 : 0011000110 ; end //	D24.6		D8
8'b11011001: begin out_standard <= !rd_standard ? 10'b1001100110 : 1001100110 ; end //	D25.6		D9
8'b11011010: begin out_standard <= !rd_standard ? 10'b0101100110 : 0101100110 ; end //	D26.6		DA
8'b11011011: begin out_standard <= !rd_standard ? 10'b1101100110 : 0010010110 ; end //	D27.6		DB
8'b11011100: begin out_standard <= !rd_standard ? 10'b0011100110 : 0011100110 ; end //	D28.6		DC
8'b11011101: begin out_standard <= !rd_standard ? 10'b1011100110 : 0100010110 ; end //	D29.6		DD
8'b11011110: begin out_standard <= !rd_standard ? 10'b0111100110 : 1000010110 ; end //	D30.6		DE
8'b11011111: begin out_standard <= !rd_standard ? 10'b1010110110 : 0101000110 ; end //	D31.6		DF
8'b11100000: begin out_standard <= !rd_standard ? 10'b1001110001 : 0110001110 ; end //	D0.7			E0
8'b11100001: begin out_standard <= !rd_standard ? 10'b0111010001 : 1000101110 ; end //	D1.7			E1
8'b11100010: begin out_standard <= !rd_standard ? 10'b1011010001 : 0100101110 ; end //	D2.7			E2
8'b11100011: begin out_standard <= !rd_standard ? 10'b1100011110 : 1100010001 ; end //	D3.7			E3
8'b11100100: begin out_standard <= !rd_standard ? 10'b1101010001 : 0010101110 ; end //	D4.7			E4
8'b11100101: begin out_standard <= !rd_standard ? 10'b1010011110 : 1010010001 ; end //	D5.7			E5
8'b11100110: begin out_standard <= !rd_standard ? 10'b0110011110 : 0110010001 ; end //	D6.7			E6
8'b11100111: begin out_standard <= !rd_standard ? 10'b1110001110 : 0001110001 ; end //	D7.7			E7
8'b11101000: begin out_standard <= !rd_standard ? 10'b1110010001 : 0001101110 ; end //	D8.7			E8
8'b11101001: begin out_standard <= !rd_standard ? 10'b1001011110 : 1001010001 ; end //	D9.7			E9
8'b11101010: begin out_standard <= !rd_standard ? 10'b0101011110 : 0101010001 ; end //	D10.7		EA
8'b11101011: begin out_standard <= !rd_standard ? 10'b1101001110 : 1101001000 ; end //	D11.7		EB
8'b11101100: begin out_standard <= !rd_standard ? 10'b0011011110 : 0011010001 ; end //	D12.7		EC
8'b11101101: begin out_standard <= !rd_standard ? 10'b1011001110 : 1011001000 ; end //	D13.7		ED
8'b11101110: begin out_standard <= !rd_standard ? 10'b0111001110 : 0111001000 ; end //	D14.7		EE
8'b11101111: begin out_standard <= !rd_standard ? 10'b0101110001 : 1010001110 ; end //	D15.7		EF	
8'b11110000: begin out_standard <= !rd_standard ? 10'b0110110001 : 1001001110 ; end //	D16.7		F0	
8'b11110001: begin out_standard <= !rd_standard ? 10'b1000110111 : 1000110001 ; end //	D17.7		F1	
8'b11110010: begin out_standard <= !rd_standard ? 10'b0100110111 : 0100110001 ; end //	D18.7		F2	
8'b11110011: begin out_standard <= !rd_standard ? 10'b1100101110 : 1100100001 ; end //	D19.7		F3	
8'b11110100: begin out_standard <= !rd_standard ? 10'b0010110111 : 0010110001 ; end //	D20.7		F4	
8'b11110101: begin out_standard <= !rd_standard ? 10'b1010101110 : 1010100001 ; end //	D21.7		F5	
8'b11110110: begin out_standard <= !rd_standard ? 10'b0110101110 : 0110100001 ; end //	D22.7		F6	
8'b11110111: begin out_standard <= !rd_standard ? 10'b1110100001 : 0001011110 ; end //	D23.7		F7	
8'b11111000: begin out_standard <= !rd_standard ? 10'b1100110001 : 0011001110 ; end //	D24.7		F8	
8'b11111001: begin out_standard <= !rd_standard ? 10'b1001101110 : 1001100001 ; end //	D25.7		F9	
8'b11111010: begin out_standard <= !rd_standard ? 10'b0101101110 : 0101100001 ; end //	D26.7		FA
8'b11111011: begin out_standard <= !rd_standard ? 10'b1101100001 : 0010011110 ; end //	D27.7		FB
8'b11111100: begin out_standard <= !rd_standard ? 10'b0011101110 : 0011100001 ; end //	D28.7		FC
8'b11111101: begin out_standard <= !rd_standard ? 10'b1011100001 : 0100011110 ; end //	D29.7		FD
8'b11111110: begin out_standard <= !rd_standard ? 10'b0111100001 : 1000011110 ; end //	D30.7		FE	
8'b11111111: begin out_standard <= !rd_standard ? 10'b1010110001 : 0101001110 ; end //	D31.7		FF	
                                                                                               
																							   
																							   
																							   /*
9'b000000000: begin out_standard <= !rd_standard ? 8'b1001110100 : 0110001011 ; end //	D0.0			00
9'b000000001: begin out_standard <= !rd_standard ? 8'b0111010100 : 1000101011 ; end //	D1.0			01
9'b000000010: begin out_standard <= !rd_standard ? 8'b1011010100 : 0100101011 ; end //	D2.0			02
9'b000000011: begin out_standard <= !rd_standard ? 8'b1100011011 : 1100010100 ; end //	D3.0			03
9'b000000100: begin out_standard <= !rd_standard ? 8'b1101010100 : 0010101011 ; end //	D4.0			04
9'b000000101: begin out_standard <= !rd_standard ? 8'b1010011011 : 1010010100 ; end //	D5.0			05
9'b000000110: begin out_standard <= !rd_standard ? 8'b0110011011 : 0110010100 ; end //	D6.0			06
9'b000000111: begin out_standard <= !rd_standard ? 8'b1110001011 : 0001110100 ; end //	D7.0			07
9'b000001000: begin out_standard <= !rd_standard ? 8'b1110010100 : 0001101011 ; end //	D8.0			08
9'b000001001: begin out_standard <= !rd_standard ? 8'b1001011011 : 1001010100 ; end //	D9.0			09
9'b000001010: begin out_standard <= !rd_standard ? 8'b0101011011 : 0101010100 ; end //	D10.0		0A
9'b000001011: begin out_standard <= !rd_standard ? 8'b1101001011 : 1101000100 ; end //	D11.0		0B
9'b000001100: begin out_standard <= !rd_standard ? 8'b0011011011 : 0011010100 ; end //	D12.0		0C
9'b000001101: begin out_standard <= !rd_standard ? 8'b1011001011 : 1011000100 ; end //	D13.0		0D
9'b000001110: begin out_standard <= !rd_standard ? 8'b0111001011 : 0111000100 ; end //	D14.0		0E
9'b000001111: begin out_standard <= !rd_standard ? 8'b0101110100 : 1010001011 ; end //	D15.0		0F	
9'b000010000: begin out_standard <= !rd_standard ? 8'b0110110100 : 1001001011 ; end //	D16.0		10
9'b000010001: begin out_standard <= !rd_standard ? 8'b1000111011 : 1000110100 ; end //	D17.0		11
9'b000010010: begin out_standard <= !rd_standard ? 8'b0100111011 : 0100110100 ; end //	D18.0		12
9'b000010011: begin out_standard <= !rd_standard ? 8'b1100101011 : 1100100100 ; end //	D19.0		13
9'b000010100: begin out_standard <= !rd_standard ? 8'b0010111011 : 0010110100 ; end //	D20.0		14
9'b000010101: begin out_standard <= !rd_standard ? 8'b1010101011 : 1010100100 ; end //	D21.0		15
9'b000010110: begin out_standard <= !rd_standard ? 8'b0110101011 : 0110100100 ; end //	D22.0		16
9'b000010111: begin out_standard <= !rd_standard ? 8'b1110100100 : 0001011011 ; end //	D23.0		17
9'b000011000: begin out_standard <= !rd_standard ? 8'b1100110100 : 0011001011 ; end //	D24.0		18
9'b000011001: begin out_standard <= !rd_standard ? 8'b1001101011 : 1001100100 ; end //	D25.0		19
9'b000011010: begin out_standard <= !rd_standard ? 8'b0101101011 : 0101100100 ; end //	D26.0		1A
9'b000011011: begin out_standard <= !rd_standard ? 8'b1101100100 : 0010011011 ; end //	D27.0		1B
9'b000011011: begin out_standard <= !rd_standard ? 8'b1101100100 : 0010011011 ; end //	D27.0		1B
9'b000011100: begin out_standard <= !rd_standard ? 8'b0011101011 : 0011100100 ; end //	D28.0		1C
9'b000011101: begin out_standard <= !rd_standard ? 8'b1011100100 : 0100011011 ; end //	D29.0		1D
9'b000011110: begin out_standard <= !rd_standard ? 8'b0111100100 : 1000011011 ; end //	D30.0		1E
9'b000011111: begin out_standard <= !rd_standard ? 8'b1010110100 : 0101001011 ; end //	D31.0		1F	
9'b000100000: begin out_standard <= !rd_standard ? 8'b1001111011 : 0110001001 ; end //	D0.1			20
9'b000100001: begin out_standard <= !rd_standard ? 8'b0111011011 : 1000101001 ; end //	D1.1			21
9'b000100010: begin out_standard <= !rd_standard ? 8'b1011011011 : 0100101001 ; end //	D2.1			22
9'b000100011: begin out_standard <= !rd_standard ? 8'b1100011011 : 1100011001 ; end //	D3.1			23
9'b000100100: begin out_standard <= !rd_standard ? 8'b1101011011 : 0010101001 ; end //	D4.1			24
9'b000100101: begin out_standard <= !rd_standard ? 8'b1010011011 : 1010011001 ; end //	D5.1			25
9'b000100110: begin out_standard <= !rd_standard ? 8'b0110011011 : 0110011001 ; end //	D6.1			26
9'b000100111: begin out_standard <= !rd_standard ? 8'b1110001011 : 0001111001 ; end //	D7.1			27
9'b000101000: begin out_standard <= !rd_standard ? 8'b1110011011 : 0001101001 ; end //	D8.1			28
9'b000101001: begin out_standard <= !rd_standard ? 8'b1001011011 : 1001011001 ; end //	D9.1			29
9'b000101010: begin out_standard <= !rd_standard ? 8'b0101011001 : 0101011001 ; end //	D10.1		2A
9'b000101011: begin out_standard <= !rd_standard ? 8'b1101001001 : 1101001001 ; end //	D11.1		2B
9'b000101100: begin out_standard <= !rd_standard ? 8'b0011011001 : 0011011001 ; end //	D12.1		2C
9'b000101101: begin out_standard <= !rd_standard ? 8'b1011011001 : 1011001001 ; end //	D13.1		2D
9'b000101110: begin out_standard <= !rd_standard ? 8'b0111001001 : 0111001001 ; end //	D14.1		2E
9'b000101111: begin out_standard <= !rd_standard ? 8'b0101111001 : 1010001001 ; end //	D15.1		2F	
9'b000110000: begin out_standard <= !rd_standard ? 8'b0110111001 : 0110111001 ; end //	D16.1		30
9'b000110001: begin out_standard <= !rd_standard ? 8'b1000111001 : 1000111001 ; end //	D17.1		31
9'b000110010: begin out_standard <= !rd_standard ? 8'b0100111001 : 0100111001 ; end //	D18.1		32
9'b000110011: begin out_standard <= !rd_standard ? 8'b1100101001 : 1100101001 ; end //	D19.1		33
9'b000110100: begin out_standard <= !rd_standard ? 8'b0010111001 : 0010111001 ; end //	D20.1		34
9'b000110101: begin out_standard <= !rd_standard ? 8'b1010101001 : 1010101001 ; end //	D21.1		35
9'b000110110: begin out_standard <= !rd_standard ? 8'b0110101001 : 0110101001 ; end //	D22.1		36
9'b000110111: begin out_standard <= !rd_standard ? 8'b1110101001 : 0001011001 ; end //	D23.1		37
9'b000111000: begin out_standard <= !rd_standard ? 8'b1100111001 : 0011001001 ; end //	D24.1		38
9'b000111001: begin out_standard <= !rd_standard ? 8'b1001101001 : 1001101001 ; end //	D25.1		39
9'b000111010: begin out_standard <= !rd_standard ? 8'b0101101001 : 0101101001 ; end //	D26.1		3A
9'b000111011: begin out_standard <= !rd_standard ? 8'b1101101001 : 0010011001 ; end //	D27.1		3B
9'b000111100: begin out_standard <= !rd_standard ? 8'b0011101001 : 0011101001 ; end //	D28.1		3C
9'b000111101: begin out_standard <= !rd_standard ? 8'b1011101001 : 0100011001 ; end //	D29.1		3D
9'b000111110: begin out_standard <= !rd_standard ? 8'b0111101001 : 1000011001 ; end //	D30.1		3E
9'b000111111: begin out_standard <= !rd_standard ? 8'b1010111001 : 0101001001 ; end //	D31.1		3F	
9'b001000000: begin out_standard <= !rd_standard ? 8'b1001110101 : 0110000101 ; end //	D0.2			40
9'b001000001: begin out_standard <= !rd_standard ? 8'b0111010101 : 1000100101 ; end //	D1.2			41
9'b001000010: begin out_standard <= !rd_standard ? 8'b1011010101 : 0100100101 ; end //	D2.2			42
9'b001000011: begin out_standard <= !rd_standard ? 8'b1100010101 : 1100010101 ; end //	D3.2			43
9'b001000100: begin out_standard <= !rd_standard ? 8'b1101010101 : 0010100101 ; end //	D4.2			44
9'b001000101: begin out_standard <= !rd_standard ? 8'b1010010101 : 1010010101 ; end //	D5.2			45
9'b001000110: begin out_standard <= !rd_standard ? 8'b0110010101 : 0110010101 ; end //	D6.2			46
9'b001000111: begin out_standard <= !rd_standard ? 8'b1110000101 : 0001110101 ; end //	D7.2			47
9'b001001000: begin out_standard <= !rd_standard ? 8'b1110010101 : 0001100101 ; end //	D8.2			48
9'b001001001: begin out_standard <= !rd_standard ? 8'b1001010101 : 1001010101 ; end //	D9.2			49
9'b001001010: begin out_standard <= !rd_standard ? 8'b0101010101 : 0101010101 ; end //	D10.2		4A
9'b001001011: begin out_standard <= !rd_standard ? 8'b1101000101 : 1101000101 ; end //	D11.2		4B
9'b001001100: begin out_standard <= !rd_standard ? 8'b0011010101 : 0011010101 ; end //	D12.2		4C
9'b001001101: begin out_standard <= !rd_standard ? 8'b1011000101 : 1011000101 ; end //	D13.2		4D
9'b001001110: begin out_standard <= !rd_standard ? 8'b0111000101 : 0111000101 ; end //	D14.2		4E
9'b001001111: begin out_standard <= !rd_standard ? 8'b0101110101 : 1010000101 ; end //	D15.2		4F	
9'b001010000: begin out_standard <= !rd_standard ? 8'b0110110101 : 1001000101 ; end //	D16.2		50
9'b001010001: begin out_standard <= !rd_standard ? 8'b1000110101 : 1000110101 ; end //	D17.2		51
9'b001010010: begin out_standard <= !rd_standard ? 8'b0100110101 : 0100110101 ; end //	D18.2		52
9'b001010011: begin out_standard <= !rd_standard ? 8'b1100100101 : 1100100101 ; end //	D19.2		53
9'b001010100: begin out_standard <= !rd_standard ? 8'b0010110101 : 0010110101 ; end //	D20.2		54
9'b001010101: begin out_standard <= !rd_standard ? 8'b1010100101 : 1010100101 ; end //	D21.2		55
9'b001010110: begin out_standard <= !rd_standard ? 8'b0110100101 : 0110100101 ; end //	D22.2		56
9'b001010111: begin out_standard <= !rd_standard ? 8'b1110100101 : 0001010101 ; end //	D23.2		57
9'b001011000: begin out_standard <= !rd_standard ? 8'b1100110101 : 0011000101 ; end //	D24.2		58
9'b001011001: begin out_standard <= !rd_standard ? 8'b1001100101 : 1001100101 ; end //	D25.2		59
9'b001011010: begin out_standard <= !rd_standard ? 8'b0101100101 : 0101100101 ; end //	D26.2		5A
9'b001011011: begin out_standard <= !rd_standard ? 8'b1101100101 : 0010010101 ; end //	D27.2		5B
9'b001011100: begin out_standard <= !rd_standard ? 8'b0011100101 : 0011100101 ; end //	D28.2		5C
9'b001011101: begin out_standard <= !rd_standard ? 8'b1011100101 : 0100010101 ; end //	D29.2		5D
9'b001011110: begin out_standard <= !rd_standard ? 8'b0111100101 : 1000010101 ; end //	D30.2		5E
9'b001011111: begin out_standard <= !rd_standard ? 8'b1010110101 : 0101000101 ; end //	D31.2		5F	
9'b001100000: begin out_standard <= !rd_standard ? 8'b1001110011 : 0110001100 ; end //	D0.3			60
9'b001100001: begin out_standard <= !rd_standard ? 8'b0111010011 : 1000101100 ; end //	D1.3			61
9'b001100010: begin out_standard <= !rd_standard ? 8'b1011010011 : 0100101100 ; end //	D2.3			62
9'b001100011: begin out_standard <= !rd_standard ? 8'b1100011100 : 1100010011 ; end //	D3.3			63
9'b001100100: begin out_standard <= !rd_standard ? 8'b1101010011 : 0010101100 ; end //	D4.3			64
9'b001100101: begin out_standard <= !rd_standard ? 8'b1010011100 : 1010010011 ; end //	D5.3			65
9'b001100110: begin out_standard <= !rd_standard ? 8'b0110011100 : 0110010011 ; end //	D6.3			66
9'b001100111: begin out_standard <= !rd_standard ? 8'b1110001100 : 0001110011 ; end //	D7.3			67
9'b001101000: begin out_standard <= !rd_standard ? 8'b1110010011 : 0001101100 ; end //	D8.3			68
9'b001101001: begin out_standard <= !rd_standard ? 8'b1001011100 : 1001010011 ; end //	D9.3			69
9'b001101010: begin out_standard <= !rd_standard ? 8'b0101011100 : 0101010011 ; end //	D10.3		6A
9'b001101011: begin out_standard <= !rd_standard ? 8'b1101001100 : 1101000011 ; end //	D11.3		6B
9'b001101100: begin out_standard <= !rd_standard ? 8'b0011011100 : 0011010011 ; end //	D12.3		6C
9'b001101101: begin out_standard <= !rd_standard ? 8'b1011001100 : 1011000011 ; end //	D13.3		6D
9'b001101110: begin out_standard <= !rd_standard ? 8'b0111001100 : 0111000011 ; end //	D14.3		6E
9'b001101111: begin out_standard <= !rd_standard ? 8'b0101110011 : 1010001100 ; end //	D15.3		6F	
9'b001110000: begin out_standard <= !rd_standard ? 8'b0110110011 : 1001001100 ; end //	D16.3		70
9'b001110001: begin out_standard <= !rd_standard ? 8'b1000111100 : 1000110011 ; end //	D17.3		71
9'b001110010: begin out_standard <= !rd_standard ? 8'b0100111100 : 0100110011 ; end //	D18.3		72
9'b001110011: begin out_standard <= !rd_standard ? 8'b1100101100 : 1100100011 ; end //	D19.3		73
9'b001110100: begin out_standard <= !rd_standard ? 8'b0010111100 : 0010110011 ; end //	D20.3		74
9'b001110101: begin out_standard <= !rd_standard ? 8'b1010101100 : 1010100011 ; end //	D21.3		75
9'b001110110: begin out_standard <= !rd_standard ? 8'b0110101100 : 0110100011 ; end //	D22.3		76
9'b001110111: begin out_standard <= !rd_standard ? 8'b1110100011 : 0001011100 ; end //	D23.3		77
9'b001111000: begin out_standard <= !rd_standard ? 8'b1100110011 : 0011001100 ; end //	D24.3		78
9'b001111001: begin out_standard <= !rd_standard ? 8'b1001101100 : 1001100011 ; end //	D25.3		79
9'b001111010: begin out_standard <= !rd_standard ? 8'b0101101100 : 0101100011 ; end //	D26.3		7A
9'b001111011: begin out_standard <= !rd_standard ? 8'b1101100011 : 0010011100 ; end //	D27.3		7B
9'b001111100: begin out_standard <= !rd_standard ? 8'b0011101100 : 0011100011 ; end //	D28.3		7C
9'b001111101: begin out_standard <= !rd_standard ? 8'b1011100011 : 0100011100 ; end //	D29.3		7D
9'b001111110: begin out_standard <= !rd_standard ? 8'b0111100011 : 1000011100 ; end //	D30.3		7E
9'b001111111: begin out_standard <= !rd_standard ? 8'b1010110011 : 0101001100 ; end //	D31.3		7F	
9'b010000000: begin out_standard <= !rd_standard ? 8'b1001110010 : 0110001101 ; end //	D0.4			80
9'b010000001: begin out_standard <= !rd_standard ? 8'b0111010010 : 1000101101 ; end //	D1.4			81
9'b010000010: begin out_standard <= !rd_standard ? 8'b1011010010 : 0100101101 ; end //	D2.4			82
9'b010000011: begin out_standard <= !rd_standard ? 8'b1100011101 : 1100010010 ; end //	D3.4			83
9'b010000100: begin out_standard <= !rd_standard ? 8'b1101010010 : 0010101101 ; end //	D4.4			84
9'b010000101: begin out_standard <= !rd_standard ? 8'b1010011101 : 1010010010 ; end //	D5.4			85
9'b010000110: begin out_standard <= !rd_standard ? 8'b0110011101 : 0110010010 ; end //	D6.4			86
9'b010000111: begin out_standard <= !rd_standard ? 8'b1110001101 : 0001110010 ; end //	D7.4			87
9'b010001000: begin out_standard <= !rd_standard ? 8'b1110010010 : 0001101101 ; end //	D8.4			88
9'b010001001: begin out_standard <= !rd_standard ? 8'b1001011101 : 1001010010 ; end //	D9.4			89
9'b010001010: begin out_standard <= !rd_standard ? 8'b0101011101 : 0101010010 ; end //	D10.4		8A
9'b010001011: begin out_standard <= !rd_standard ? 8'b1101001101 : 1101000010 ; end //	D11.4		8B
9'b010001100: begin out_standard <= !rd_standard ? 8'b0011011101 : 0011010010 ; end //	D12.4		8C
9'b010001101: begin out_standard <= !rd_standard ? 8'b1011001101 : 1011000010 ; end //	D13.4		8D
9'b010001110: begin out_standard <= !rd_standard ? 8'b0111001101 : 0111000010 ; end //	D14.4		8E
9'b010001111: begin out_standard <= !rd_standard ? 8'b0101110010 : 1010001101 ; end //	D15.4		8F	
9'b010010000: begin out_standard <= !rd_standard ? 8'b0110110010 : 1001001101 ; end //	D16.4		90
9'b010010001: begin out_standard <= !rd_standard ? 8'b1000111101 : 1000110010 ; end //	D17.4		91
9'b010010010: begin out_standard <= !rd_standard ? 8'b0100111101 : 0100110010 ; end //	D18.4		92
9'b010010011: begin out_standard <= !rd_standard ? 8'b1100101101 : 1100100010 ; end //	D19.4		93
9'b010010100: begin out_standard <= !rd_standard ? 8'b0010111101 : 0010110010 ; end //	D20.4		94
9'b010010101: begin out_standard <= !rd_standard ? 8'b1010101101 : 1010100010 ; end //	D21.4		95
9'b010010110: begin out_standard <= !rd_standard ? 8'b0110101101 : 0110100010 ; end //	D22.4		96
9'b010010111: begin out_standard <= !rd_standard ? 8'b1110100010 : 0001011101 ; end //	D23.4		97
9'b010011000: begin out_standard <= !rd_standard ? 8'b1100110010 : 0011001101 ; end //	D24.4		98
9'b010011001: begin out_standard <= !rd_standard ? 8'b1001101101 : 1001100010 ; end //	D25.4		99
9'b010011010: begin out_standard <= !rd_standard ? 8'b0101101101 : 0101100010 ; end //	D26.4		9A
9'b010011011: begin out_standard <= !rd_standard ? 8'b1101100010 : 0010011101 ; end //	D27.4		9B
9'b010011100: begin out_standard <= !rd_standard ? 8'b0011101101 : 0011100010 ; end //	D28.4		9C
9'b010011101: begin out_standard <= !rd_standard ? 8'b1011100010 : 0100011101 ; end //	D29.4		9D
9'b010011110: begin out_standard <= !rd_standard ? 8'b0111100010 : 1000011101 ; end //	D30.4		9E
9'b010011111: begin out_standard <= !rd_standard ? 8'b1010110010 : 0101001101 ; end //	D31.4		9F	
9'b010100000: begin out_standard <= !rd_standard ? 8'b1001111010 : 0110001010 ; end //	D0.5			A0
9'b010100001: begin out_standard <= !rd_standard ? 8'b0111011010 : 1000101010 ; end //	D1.5			A1
9'b010100010: begin out_standard <= !rd_standard ? 8'b1011011010 : 0100101010 ; end //	D2.5			A2
9'b010100011: begin out_standard <= !rd_standard ? 8'b1100011010 : 1100011010 ; end //	D3.5			A3
9'b010100100: begin out_standard <= !rd_standard ? 8'b1101011010 : 0010101010 ; end //	D4.5			A4
9'b010100101: begin out_standard <= !rd_standard ? 8'b1010011010 : 1010011010 ; end //	D5.5			A5
9'b010100110: begin out_standard <= !rd_standard ? 8'b0110011010 : 0110011010 ; end //	D6.5			A6
9'b010100111: begin out_standard <= !rd_standard ? 8'b1110001010 : 0001111010 ; end //	D7.5			A7
9'b010101000: begin out_standard <= !rd_standard ? 8'b1110011010 : 0001101010 ; end //	D8.5			A8
9'b010101001: begin out_standard <= !rd_standard ? 8'b1001011010 : 1001011010 ; end //	D9.5			A9
9'b010101010: begin out_standard <= !rd_standard ? 8'b0101011010 : 0101011010 ; end //	D10.5		AA
9'b010101011: begin out_standard <= !rd_standard ? 8'b1101001010 : 1101001010 ; end //	D11.5		AB
9'b010101100: begin out_standard <= !rd_standard ? 8'b0011011010 : 0011011010 ; end //	D12.5		AC
9'b010101101: begin out_standard <= !rd_standard ? 8'b1011001010 : 1011001010 ; end //	D13.5		AD
9'b010101110: begin out_standard <= !rd_standard ? 8'b0111001010 : 0111001010 ; end //	D14.5		AE
9'b010101111: begin out_standard <= !rd_standard ? 8'b0101111010 : 1010001010 ; end //	D15.5		AF
9'b010110000: begin out_standard <= !rd_standard ? 8'b0110111010 : 1001001010 ; end //	D16.5		B0
9'b010110001: begin out_standard <= !rd_standard ? 8'b1000111010 : 1000111010 ; end //	D17.5		B1
9'b010110010: begin out_standard <= !rd_standard ? 8'b0100111010 : 0100111010 ; end //	D18.5		B2
9'b010110011: begin out_standard <= !rd_standard ? 8'b1100101010 : 1100101010 ; end //	D19.5		B3
9'b010110100: begin out_standard <= !rd_standard ? 8'b0010111010 : 0010111010 ; end //	D20.5		B4
9'b010110101: begin out_standard <= !rd_standard ? 8'b1010101010 : 1010101010 ; end //	D21.5		B5
9'b010110110: begin out_standard <= !rd_standard ? 8'b0110101010 : 0110101010 ; end //	D22.5		B6
9'b010110111: begin out_standard <= !rd_standard ? 8'b1110101010 : 0001011010 ; end //	D23.5		B7
9'b010111000: begin out_standard <= !rd_standard ? 8'b1100111010 : 0011001010 ; end //	D24.5		B8
9'b010111001: begin out_standard <= !rd_standard ? 8'b1001101010 : 1001101010 ; end //	D25.5		B9
9'b010111010: begin out_standard <= !rd_standard ? 8'b0101101010 : 0101101010 ; end //	D26.5		BA
9'b010111011: begin out_standard <= !rd_standard ? 8'b1101101010 : 0010011010 ; end //	D27.5		BB
9'b010111100: begin out_standard <= !rd_standard ? 8'b0011101010 : 0011101010 ; end //	D28.5		BC
9'b010111101: begin out_standard <= !rd_standard ? 8'b1011101010 : 0100011010 ; end //	D29.5		BD
9'b010111110: begin out_standard <= !rd_standard ? 8'b0111101010 : 1000011010 ; end //	D30.5		BE
9'b010111111: begin out_standard <= !rd_standard ? 8'b1010111010 : 0101001010 ; end //	D31.5		BF
9'b011000000: begin out_standard <= !rd_standard ? 8'b1001110110 : 0110000110 ; end //	D0.6			C0
9'b011000001: begin out_standard <= !rd_standard ? 8'b0111010110 : 1000100110 ; end //	D1.6			C1
9'b011000010: begin out_standard <= !rd_standard ? 8'b1011010110 : 0100100110 ; end //	D2.6			C2
9'b011000011: begin out_standard <= !rd_standard ? 8'b1100010110 : 1100010110 ; end //	D3.6			C3
9'b011000100: begin out_standard <= !rd_standard ? 8'b1101010110 : 0010100110 ; end //	D4.6			C4
9'b011000101: begin out_standard <= !rd_standard ? 8'b1010010110 : 1010010110 ; end //	D5.6			C5
9'b011000110: begin out_standard <= !rd_standard ? 8'b0110010110 : 0110010110 ; end //	D6.6			C6
9'b011000111: begin out_standard <= !rd_standard ? 8'b1110000110 : 0001110110 ; end //	D7.6			C7
9'b011001000: begin out_standard <= !rd_standard ? 8'b1110010110 : 0001100110 ; end //	D8.6			C8
9'b011001001: begin out_standard <= !rd_standard ? 8'b1001010110 : 1001010110 ; end //	D9.6			C9
9'b011001010: begin out_standard <= !rd_standard ? 8'b0101010110 : 0101010110 ; end //	D10.6		CA
9'b011001011: begin out_standard <= !rd_standard ? 8'b1101000110 : 1101000110 ; end //	D11.6		CB
9'b011001100: begin out_standard <= !rd_standard ? 8'b0011010110 : 0011010110 ; end //	D12.6		CC
9'b011001101: begin out_standard <= !rd_standard ? 8'b1011000110 : 1011000110 ; end //	D13.6		CD
9'b011001110: begin out_standard <= !rd_standard ? 8'b0111000110 : 0111000110 ; end //	D14.6		CE
9'b011001111: begin out_standard <= !rd_standard ? 8'b0101110110 : 1010000110 ; end //	D15.6		CF
9'b011010000: begin out_standard <= !rd_standard ? 8'b0110110110 : 1001000110 ; end //	D16.6		D0
9'b011010001: begin out_standard <= !rd_standard ? 8'b1000110110 : 1000110110 ; end //	D17.6		D1
9'b011010010: begin out_standard <= !rd_standard ? 8'b0100110110 : 0100110110 ; end //	D18.6		D2
9'b011010011: begin out_standard <= !rd_standard ? 8'b1100100110 : 1100100110 ; end //	D19.6		D3
9'b011010100: begin out_standard <= !rd_standard ? 8'b0010110110 : 0010110110 ; end //	D20.6		D4
9'b011010101: begin out_standard <= !rd_standard ? 8'b1010100110 : 1010100110 ; end //	D21.6		D5
9'b011010110: begin out_standard <= !rd_standard ? 8'b0110100110 : 0110100110 ; end //	D22.6		D6
9'b011010111: begin out_standard <= !rd_standard ? 8'b1110100110 : 0001010110 ; end //	D23.6		D7
9'b011011000: begin out_standard <= !rd_standard ? 8'b1100110110 : 0011000110 ; end //	D24.6		D8
9'b011011001: begin out_standard <= !rd_standard ? 8'b1001100110 : 1001100110 ; end //	D25.6		D9
9'b011011010: begin out_standard <= !rd_standard ? 8'b0101100110 : 0101100110 ; end //	D26.6		DA
9'b011011011: begin out_standard <= !rd_standard ? 8'b1101100110 : 0010010110 ; end //	D27.6		DB
9'b011011100: begin out_standard <= !rd_standard ? 8'b0011100110 : 0011100110 ; end //	D28.6		DC
9'b011011101: begin out_standard <= !rd_standard ? 8'b1011100110 : 0100010110 ; end //	D29.6		DD
9'b011011110: begin out_standard <= !rd_standard ? 8'b0111100110 : 1000010110 ; end //	D30.6		DE
9'b011011111: begin out_standard <= !rd_standard ? 8'b1010110110 : 0101000110 ; end //	D31.6		DF
9'b011100000: begin out_standard <= !rd_standard ? 8'b1001110001 : 0110001110 ; end //	D0.7			E0
9'b011100001: begin out_standard <= !rd_standard ? 8'b0111010001 : 1000101110 ; end //	D1.7			E1
9'b011100010: begin out_standard <= !rd_standard ? 8'b1011010001 : 0100101110 ; end //	D2.7			E2
9'b011100011: begin out_standard <= !rd_standard ? 8'b1100011110 : 1100010001 ; end //	D3.7			E3
9'b011100100: begin out_standard <= !rd_standard ? 8'b1101010001 : 0010101110 ; end //	D4.7			E4
9'b011100101: begin out_standard <= !rd_standard ? 8'b1010011110 : 1010010001 ; end //	D5.7			E5
9'b011100110: begin out_standard <= !rd_standard ? 8'b0110011110 : 0110010001 ; end //	D6.7			E6
9'b011100111: begin out_standard <= !rd_standard ? 8'b1110001110 : 0001110001 ; end //	D7.7			E7
9'b011101000: begin out_standard <= !rd_standard ? 8'b1110010001 : 0001101110 ; end //	D8.7			E8
9'b011101001: begin out_standard <= !rd_standard ? 8'b1001011110 : 1001010001 ; end //	D9.7			E9
9'b011101010: begin out_standard <= !rd_standard ? 8'b0101011110 : 0101010001 ; end //	D10.7		EA
9'b011101011: begin out_standard <= !rd_standard ? 8'b1101001110 : 1101001000 ; end //	D11.7		EB
9'b011101100: begin out_standard <= !rd_standard ? 8'b0011011110 : 0011010001 ; end //	D12.7		EC
9'b011101101: begin out_standard <= !rd_standard ? 8'b1011001110 : 1011001000 ; end //	D13.7		ED
9'b011101110: begin out_standard <= !rd_standard ? 8'b0111001110 : 0111001000 ; end //	D14.7		EE
9'b011101111: begin out_standard <= !rd_standard ? 8'b0101110001 : 1010001110 ; end //	D15.7		EF	
9'b011110000: begin out_standard <= !rd_standard ? 8'b0110110001 : 1001001110 ; end //	D16.7		F0	
9'b011110001: begin out_standard <= !rd_standard ? 8'b1000110111 : 1000110001 ; end //	D17.7		F1	
9'b011110010: begin out_standard <= !rd_standard ? 8'b0100110111 : 0100110001 ; end //	D18.7		F2	
9'b011110011: begin out_standard <= !rd_standard ? 8'b1100101110 : 1100100001 ; end //	D19.7		F3	
9'b011110100: begin out_standard <= !rd_standard ? 8'b0010110111 : 0010110001 ; end //	D20.7		F4	
9'b011110101: begin out_standard <= !rd_standard ? 8'b1010101110 : 1010100001 ; end //	D21.7		F5	
9'b011110110: begin out_standard <= !rd_standard ? 8'b0110101110 : 0110100001 ; end //	D22.7		F6	
9'b011110111: begin out_standard <= !rd_standard ? 8'b1110100001 : 0001011110 ; end //	D23.7		F7	
9'b011111000: begin out_standard <= !rd_standard ? 8'b1100110001 : 0011001110 ; end //	D24.7		F8	
9'b011111001: begin out_standard <= !rd_standard ? 8'b1001101110 : 1001100001 ; end //	D25.7		F9	
9'b011111010: begin out_standard <= !rd_standard ? 8'b0101101110 : 0101100001 ; end //	D26.7		FA
9'b011111011: begin out_standard <= !rd_standard ? 8'b1101100001 : 0010011110 ; end //	D27.7		FB
9'b011111100: begin out_standard <= !rd_standard ? 8'b0011101110 : 0011100001 ; end //	D28.7		FC
9'b011111101: begin out_standard <= !rd_standard ? 8'b1011100001 : 0100011110 ; end //	D29.7		FD
9'b011111110: begin out_standard <= !rd_standard ? 8'b0111100001 : 1000011110 ; end //	D30.7		FE	
9'b011111111: begin out_standard <= !rd_standard ? 8'b1010110001 : 0101001110 ; end //	D31.7		FF	
//特殊值__编码                                                                           _                    _                   //	 					 
9'b100011100: begin out_standard <= !rd_standard ? 8'b0011110100 : 1100001011 ; end //	K28.0		1C		
9'b100111100: begin out_standard <= !rd_standard ? 8'b0011111001 : 1100000110 ; end //	K28.1		3C
9'b101011100: begin out_standard <= !rd_standard ? 8'b0011110101 : 1100001010 ; end //	K28.2		5C
9'b101111100: begin out_standard <= !rd_standard ? 8'b0011110011 : 1100001100 ; end //	K28.3		7C
9'b110011100: begin out_standard <= !rd_standard ? 8'b0011110010 : 1100001101 ; end //	K28.4		9C
9'b110111100: begin out_standard <= !rd_standard ? 8'b0011111010 : 1100000101 ; end //	K28.5		BC
9'b111011100: begin out_standard <= !rd_standard ? 8'b0011110110 : 1100001001 ; end //	K28.6		DC
9'b111111100: begin out_standard <= !rd_standard ? 8'b0011111000 : 1100000111 ; end //	K28.7		FC
9'b111110111: begin out_standard <= !rd_standard ? 8'b1110101000 : 0001010111 ; end //	K23.7		F7
9'b111111011: begin out_standard <= !rd_standard ? 8'b1101101000 : 0010010111 ; end //	K27.7		FB
9'b111111101: begin out_standard <= !rd_standard ? 8'b1011101000 : 0100010111 ; end //	K29.7		FD
9'b111111110: begin out_standard <= !rd_standard ? 8'b0111101000 : 1000010111 ; end //	K30.7		FE
                                                                                                                                        	
*/
endcase

end

endmodule











